//
//  AppInfo.m
//  barcodehair
//
//  Created by wai man lam on 19/4/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "HomePageDataListItem.h"

@implementation HomePageDataListItem

@synthesize filePath;
@synthesize customizeTabsList;
@synthesize backgroundImg;
@synthesize logo;
@synthesize appIcon;
@synthesize menuColor;
@synthesize menuBackground;
@synthesize hideFont;
@synthesize detailUrl;

- (id)init{
    self = [super init];
    filePath = [[NSMutableArray alloc] init];
    customizeTabsList = [[NSMutableArray alloc] init];
    
    return self;
}

- (id)copyWithZone:(NSZone *)zone {
    id copy = [[[self class] alloc] init];
    if (copy) {
        
        [copy setSysTabName:self.sysTabName];
        [copy setLocation:self.location];
        [copy setLayout:self.layout];
        [copy setTabType:self.tabType];
        [copy setTabName:self.tabName];
        [copy setTabTitle:self.tabTitle];
        [copy setProjectId:self.projectId];
        [copy setID:self.ID];
        
        [copy setFilePath:self.filePath];
        [copy setCustomizeTabsList:self.customizeTabsList];
        [copy setBackgroundImg:self.backgroundImg];
        [copy setLogo:self.logo];
        [copy setAppIcon:self.appIcon];
        [copy setMenuColor:self.menuColor];
        [copy setMenuBackground:self.menuBackground];
        [copy setHideFont:self.hideFont];
        [copy setDetailUrl:self.detailUrl];
    }
    return copy;
}

@end


@implementation CustomizeTabsListItem

@synthesize isActive;
@synthesize backGround;
@synthesize content_CN;
@synthesize content_EN;
@synthesize folder;
@synthesize functionName;
@synthesize iconID;
@synthesize iconName;
@synthesize iconURL;
@synthesize isShared;
@synthesize ivo;
@synthesize sort;

@synthesize tabLayoutVO;
@synthesize tabsVO;

- (id)init{
    self = [super init];
    
    return self;
}

- (id)copyWithZone:(NSZone *)zone {
    id copy = [[[self class] alloc] init];
    if (copy) {
        [copy setSysTabName:self.sysTabName];
        [copy setLocation:self.location];
        [copy setLayout:self.layout];
        [copy setTabType:self.tabType];
        [copy setTabName:self.tabName];
        [copy setTabTitle:self.tabTitle];
        [copy setProjectId:self.projectId];
        [copy setID:self.ID];
        
        [copy setIsActive:self.isActive];
        [copy setBackGround:self.backGround];
        [copy setContent_CN:self.content_CN];
        [copy setContent_EN:self.content_EN];
        [copy setFolder:self.folder];
        [copy setFunctionName:self.functionName];
        [copy setIconID:self.iconID];
        [copy setIconName:self.iconName];
        [copy setIconURL:self.iconURL];
        [copy setIsShared:self.isShared];
        [copy setIvo:self.ivo];
        [copy setSort:self.sort];
        
        [copy setTabLayoutVO:self.tabLayoutVO];
        [copy setTabsVO:self.tabsVO];
        
    }
    return copy;
}
@end

@implementation TabLayoutVO

@synthesize fileName;
@synthesize folder;
@synthesize imageURL;
@synthesize layoutFilePath;
@synthesize layoutName;
@synthesize maxCount;
@synthesize pic1;
@synthesize picSize;
@synthesize sort;

- (id)init{
    self = [super init];
    
    return self;
}

- (id)copyWithZone:(NSZone *)zone {
    id copy = [[[self class] alloc] init];
    if (copy) {
        [copy setSysTabName:self.sysTabName];
        [copy setLocation:self.location];
        [copy setLayout:self.layout];
        [copy setTabType:self.tabType];
        [copy setTabName:self.tabName];
        [copy setTabTitle:self.tabTitle];
        [copy setProjectId:self.projectId];
        [copy setID:self.ID];
        
        [copy setFileName:self.fileName];
        [copy setFolder:self.folder];
        [copy setImageURL:self.imageURL];
        [copy setLayoutFilePath:self.layoutFilePath];
        [copy setLayoutName:self.layoutName];
       // [copy setMaxCount:self.maxCount];
        [copy setPic1:self.pic1];
        [copy setPicSize:self.picSize];
        [copy setSort:self.sort];
        
    }
    return copy;
}

@end

@implementation TabsVO

@synthesize isActive;
@synthesize backGround;
@synthesize content_CN;
@synthesize content_EN;
@synthesize defaultDisplay;
@synthesize folder;
@synthesize functionName;
@synthesize iconURL;
@synthesize industryId;
@synthesize isAdded;
@synthesize isAvailable;
@synthesize isShared;
@synthesize layoutID;
@synthesize maxInstance;
@synthesize multiSelect;
@synthesize previewImage;
@synthesize sort;
@synthesize templateId;
@synthesize tips;

- (id)init{
    self = [super init];
    
    return self;
}

- (id)copyWithZone:(NSZone *)zone {
    id copy = [[[self class] alloc] init];
    if (copy) {
        [copy setSysTabName:self.sysTabName];
        [copy setLocation:self.location];
        [copy setLayout:self.layout];
        [copy setTabType:self.tabType];
        [copy setTabName:self.tabName];
        [copy setTabTitle:self.tabTitle];
        [copy setProjectId:self.projectId];
        [copy setID:self.ID];
        
        [copy setIsActive:self.isActive];
        [copy setBackGround:self.backGround];
        [copy setContent_CN:self.content_CN];
        [copy setContent_EN:self.content_EN];
        [copy setDefaultDisplay:self.defaultDisplay];
        [copy setFolder:self.folder];
        [copy setFunctionName:self.functionName];
        [copy setIconURL:self.iconURL];
        [copy setIndustryId:self.industryId];
        [copy setIsAdded:self.isAdded];
        [copy setIsAvailable:self.isAvailable];
        [copy setIsShared:self.isShared];
        [copy setLayoutID:self.layoutID];
        [copy setMaxInstance:self.maxInstance];
        [copy setMultiSelect:self.multiSelect];
        [copy setPreviewImage:self.previewImage];
        [copy setSort:self.sort];
        [copy setTemplateId:self.templateId];
        [copy setTips:self.tips];

    }
    return copy;
}

@end